/*
 * fx.fx
 *
 * Created on 06.10.2009, 20:31:14
 */

package laba1;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.effect.DropShadow;
import javafx.scene.shape.Polygon;
import javafx.scene.shape.Line;
import javafx.scene.transform.Rotate;

import javafx.scene.shape.Circle;
import javafx.scene.effect.Bloom;

import javafx.scene.effect.MotionBlur;

import javafx.scene.shape.Ellipse;
import javafx.scene.effect.Reflection;
import javafx.scene.transform.Translate;
import javafx.scene.transform.Shear;






/**
 * @author Сергей
 */

Stage {

    title: "Laba1"
    width: 550
    height: 480
    scene: Scene {

        content: [


                                Rectangle {
                        x: 0, y: 0
                        width: 550, height: 355
                        fill: Color.BLACK
                }



            Text {
                font : Font {

                    size : 16

                }

                x: 440
                y: 45
                fill:Color.RED
                
                content: "Laba1"

              transforms:  Rotate { pivotX : 0.0, pivotY : 0.0, angle: 6.0 }

                      effect:   Reflection {
                      fraction: 0.75
                      topOffset: 0.0
                      topOpacity: 0.5
                      bottomOpacity: 0.1
              }




             



            }



                        Polygon {
                    points : [ 0,360, 300,360, 440,360 ]
                    fill: Color.GREEN
            }



                   Rectangle {
                    x: 40, y: 300
                    width: 140, height: 80
                    fill: Color.BROWN

                          effect: DropShadow {
                            offsetX: 10
                            offsetY: 10
                            color: Color.BLACK
                            radius: 10
                    }








      }

                  Polygon {
              points : [ 40,300, 107,240, 180,300 ]
              fill: Color.BROWN






      }
            Rectangle {
              x: 60, y: 320
              width: 40, height: 40
              fill: Color.YELLOW
      }


      Line {
              startX: 80, startY: 320
              endX: 80, endY: 360
              strokeWidth: 2
              stroke: Color.BLACK

                            


      }

      Line {
              startX: 60, startY: 340
              endX: 100, endY: 340
              strokeWidth: 2
              stroke: Color.BLACK
      }
            Rectangle {
              x: 118, y: 235
              width: 15, height: 30
              fill: Color.RED
                           transforms: Rotate { pivotX : 0.0, pivotY : 0.0, angle:2.0 }
                                                 






      }

      Circle {
              centerX: 39, centerY: 39
              radius: 40
              fill: Color.WHITE
              effect: MotionBlur {
                              angle: 45
                              radius: 10
                      }


                 transforms:     Rotate { pivotX : 10.0, pivotY : 4.0, angle: 0.0 }

                                      


                     




      }

      Rectangle {
              x: 140, y: 340
              width: 30, height: 40
              fill: Color.BLACK
      }

      Circle {
              centerX: 159, centerY: 348
              radius: 3
              fill: Color.RED

                            effect: Bloom {
                      threshold: 1.0
              }
              transforms:Shear { x: 0.0, y : 0.1 }


              


      }







           Ellipse {
              centerX: 130, centerY: 215
              radiusX: 15, radiusY: 7
              fill: Color.LIGHTGRAY
                       effect:     Reflection {
                      fraction: 0.75
                      topOffset: 0.0
                      topOpacity: 0.5
                      bottomOpacity: 0.0
              }


      }

      Ellipse {
              centerX: 140, centerY: 200
              radiusX: 17, radiusY: 9
              fill: Color.LIGHTGRAY
      }


      Ellipse {
              centerX: 151, centerY: 180
              radiusX: 18, radiusY: 9
              fill: Color.LIGHTGRAY

                       transforms:  Translate { x : 0.9, y : 0.2 }

}






        ]
}








       


    
}